const state =  {
    productName:'iphone',
    username:'zhangsan'
}

const mutations = {
    setProductName(state){
        state.productName = 'macbook'
    }
}

export default {
    state,
    mutations
}